#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[5] = { 5,4,3,2,1 };
	for (int i = 0; i < 4; i++)
	{
		int max = arr[i];
		while(arr[i] < arr[i + 1])
		{
			max = arr[i + 1];
			arr[i + 1] = arr[i];
			arr[i] = max;
		}
		printf("%s",arr);
	}
	
	return 0;
}